package com.springboot.cloud.common.core.enums;

/**
 * @author godyao
 * @date 2022/3/19
 */
public enum OrderStatusEnum {
    PENDING_PROCESS(-1, "待处理"),
    PENDING_PAY(0, "待支付"),
    SUCCESS_PAY(1, "支付成功"),
    DELEVERY(2, "已发货"),
    FINISH(3, "完成")
    ;

    private final int code;

    private final String desc;

    OrderStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }
}
